package com.bt.lms.ui.action.teaching.plan;

import com.bt.lms.ui.page.common.action.pageteaching.TeachingPlanLabAction;
import com.bt.lms.ui.page.teaching.plan.PageRelevanceCourse;
import com.bt.lms.ui.page.teaching.plan.PageTeachingPlanBasicInfoList;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;

/**
 * 教学计划
 * 返回按钮事件
 */
public class LRelevanceCourseReturnBtnAction implements EventHandler {

    //原界面
    private PageRelevanceCourse pageRelevanceCourse;
    public LRelevanceCourseReturnBtnAction(PageRelevanceCourse pageRelevanceCourse) {
        this.pageRelevanceCourse = pageRelevanceCourse;
    }

    @Override
    public void handle(Event event) {

        PageTeachingPlanBasicInfoList pageTeachingPlanBasicInfo = new PageTeachingPlanBasicInfoList();
        Pane pane = TeachingPlanLabAction.pageSkipInfo.getPane();
        Integer index = TeachingPlanLabAction.pageSkipInfo.getIndex();
        pane.getChildren().set(index,pageTeachingPlanBasicInfo);

    }
}
